class ya{
	public static void main(String[] args) {
		int a=20;
		int b=20;
		boolean bo1 = (++a%3==0 && a++%7 ==0);
		boolean bo2 = (b++%3==0 && ++b%7 ==0);
		System.out.println(a);
		System.out.println(bo1);
		System.out.println(b);
		System.out.println(bo2);
	}
}
 